import os
import time
import pytest
import yaml


@pytest.fixture(scope="session", autouse=True)
# 设置日志名称
def manage_logs(request):
    now = time.strftime("%Y-%m-%d_%H-%M-%S")
    log_name = 'log/' + now + '.log'
    request.config.pluginmanager.get_plugin("logging-plugin").set_log_path(log_name)
